import { srvHttp } from '../srvHttp'
//查询用户信息
export function selectUser(data) {
    return srvHttp({
        url: '/myapi/user/select',
        method: 'POST',
        data: data
    })
}
//修改
export function updateUserAdmin(data) {
    return srvHttp({
        url: '/myapi/user/updateAdmin',
        data: data,
        method: 'POST'
    })
}
//注册
export function regUser(data) {
    return srvHttp({
        url: '/api/user/reg',
        data: data,
        method: 'POST'
    })
}
//删除
export function delUserById(id) {
    return srvHttp({
        url: `/myapi/user/del?id=${id}`,
        method: 'GET'
    })
}